package cn.zlp.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zlp
 * @since 2022-01-02
 */
@TableName("t_menu")
public class Menu extends Model<Menu> {

private static final long serialVersionUID=1L;

                        @TableId(value = "id", type = IdType.AUTO)
                            private Long id;
                private String sn;
                private String name;
                private String icon;
                private String url;
                private String intro;
    @TableField("parent_id")
                private Long parentId;


    public Long getId(){
            return id;
            }

        public void setId(Long id) {
            this.id = id;
            }

    public String getSn(){
            return sn;
            }

        public void setSn(String sn) {
            this.sn = sn;
            }

    public String getName(){
            return name;
            }

        public void setName(String name) {
            this.name = name;
            }

    public String getIcon(){
            return icon;
            }

        public void setIcon(String icon) {
            this.icon = icon;
            }

    public String getUrl(){
            return url;
            }

        public void setUrl(String url) {
            this.url = url;
            }

    public String getIntro(){
            return intro;
            }

        public void setIntro(String intro) {
            this.intro = intro;
            }

    public Long getParentId(){
            return parentId;
            }

        public void setParentId(Long parentId) {
            this.parentId = parentId;
            }

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "Menu{" +
                ", id=" + id +
                ", sn=" + sn +
                ", name=" + name +
                ", icon=" + icon +
                ", url=" + url +
                ", intro=" + intro +
                ", parentId=" + parentId +
        "}";
        }
        }
